<template>
  <view>
    <view class="my-message-box1" >
      <view class="my-message-box1-left">
        <view class="my-message-user">
          <image :src="comments.user.avatar" mode=""></image>
          <view class="my-message-user-left">
            <text class="my-user-text1">{{comments.user.username}}</text>
            <text class="my-user-text2">{{comments.createTime}}</text>
          </view>
        </view>
        <text class="my-user-text3">{{comments.content}}</text>
      </view>
      <image :src="comments.img" mode="" class="my-message-right-pic"></image>
    </view>
  </view>
</template>

<script>
  export default {
    name:"my-comment",
    data() {
      return {
        
      };
    },
    props:{
      comments:{
        type: Object,
        defaul: {},
      }
    }
    
  }
</script>

<style lang="scss">
.my-message-box1{
    width: 690rpx;
    height: 200rpx;
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35rpx 30rpx;
    border-radius: 20rpx;
    .my-message-box1-left{
      display: flex;
      flex-direction: column;
      padding: 35rpx;
      .my-message-user{
        display: flex;
        margin-bottom: 15rpx;
        image{
          width: 90rpx;
          height: 90rpx;
          border-radius: 45rpx;
          margin-right: 8rpx;
        }
        .my-message-user-left{
          display: flex;
          flex-direction: column;
          .my-user-text1{
            font-size: 20px;
            color: #333333;
          }
          .my-user-text2{
            font-size: 12px;
            color: #868686;
          }
        }
      }
      .my-user-text3{
        font-size: 15px;
        color: #333333;
        padding-left: 90rpx;
      }
    }
    .my-message-right-pic{
      width: 126rpx;
      height: 126rpx;
      padding-right: 48rpx;
    }
  }
</style>